home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / cbm / 2021 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.6 KB

  1. Path: spacenns.space.honeywell.com!usenet
  2. From: bjheyboer@space.honeywell.com (Brian Heyboer)
  3. Newsgroups: comp.sys.cbm
  4. Subject: Re: Want to read/record temp with c64
  5. Date: 11 Feb 1996 14:28:05 GMT
  6. Organization: Honeywell Space Systems
  7. Distribution: world
  8. Message-ID: <4fkudl$dfm@spacenns.space.honeywell.com>
  9. References: <4e75jl$je4@news.csus.edu> <4ff413$jeb@onramp.arc.nasa.gov>
  10. NNTP-Posting-Host: bjheyboer.space.honeywell.com
  11.  
  12. In article <4ff413$jeb@onramp.arc.nasa.gov> lwilliam@pioneer.arc.nasa.gov (Tom)
  13. writes:
  14.  
  15. >I used a temperature sensor from an old electronic thermometer - really a
  16. >thermal resistor - and attached it to the joystick port, one side to +5v, the
  17. >other to a paddle input.  A memory location would hold the resultant value,
  18. >0-255.  Adding a couple variable resistors, one in series, one in parallel,
  19. >would allow hardware adjustment of the sensitivity and range.
  20.  
  21. A couple more things here:  The repeatability of the C-64 paddle input is
  22. pretty good, though I would take a few samples and average them to remove any
  23. jitter.  From one C-64 to the next, however, repeatability is poor.  If there
  24. is any need to use this with multiple computers, you will need to do some
  25. adjusting if you want accurate results.
  26.  
  27. >Two software appraoches are possible: table lookup and algebraic calculation.
  28.  
  29. A second-order least-squares fit should be plenty good enough, and you can
  30. calculate well enough from just a few data points.  Hmmm...I have some
  31. least-squares approximation software in BASIC around here SOMEWHERE (up too
  32. fifth order, if memory serves), but its been years since I used it.  Now what
  33. did I do with it?
  34.  
  35.